package com.esfak47.mediafetcher.core.service;

import com.esfak47.common.PageResult;
import com.esfak47.mediafetcher.core.domain.Media;

/**
 * @author tony
 * @date 2018/5/6
 */
public interface MediaStorage {

    void save(Media media);

    Media getById(String id);


    void delete(String id);

    PageResult<Media> getPage(int page,int pageSize);

}
